import request from '@/utils/request.js'

// 获取所有分类列表的 API 接口
export const getCateListAPI = () => request.get('/my/cate/list')

// 新增文章接口分类API
export const addCateAPI = obj => request.post('/my/cate/add', obj)

// 更新文章接口分类API
export const updateCateAPI = obj => request.put('/my/cate/info', obj)

// 删除文章分类API
export const deleteCateAPI = id =>
  request.delete('/my/cate/del', {
    params: { id }
  })
